﻿#pragma strict

var intRandom : int;
//var caminhao : GameObject;

function Start () {
    intRandom=Random.Range(1,5);
    
}

function Update () {
    //Debug.Log(intRandom*60);
    //Debug.Log(Mathf.Ceil(Time.realtimeSinceStartup));
    if(intRandom*60 == Mathf.Ceil(Time.realtimeSinceStartup))
    {
        ComportamentoDeposito.AumentarProduto();
        intRandom=Random.Range(1,5);
    }
	//var caminhao = Instantiate(caminhao,transform.position,Quaternion.identity);
}